﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NFine.Code;
using NFine.Domain._02_ViewModel;
using NFine.Domain._03_Entity.InformationCenter;
using NFine.Domain._04_IRepository.InformationCenter;
using NFine.Repository.InformationCenter;

namespace NFine.Application.InformationCenter
{
    public class SysMessageReplyApp
    {
        private ISysMessagesReplyRepository replyService = new SysMessagesReplyRepository();

        public List<View_Reply> GetList(string MessageId)
        {
            return replyService.GetReplyList(MessageId);
        }

        public SysMessagesReplyEntity GetForm(string keyValue)
        {
            return replyService.FindEntity(keyValue);
        }

        public void SubmitForm(SysMessagesReplyEntity entity)
        {
            entity.Create();
            replyService.Insert(entity);
        }

        public int DeleteReplies(string keyValues)
        {
            return replyService.DeleteReplies(keyValues);
        }
    }
}